Navya_R
Databricks Employee
Databricks Employee

You may run the below in a notebook within the workspace:

dbutils.entry_point.getDbutils().notebook().getContext().toJson()

The output contains: 

browserHostName - is the workspace name

orgId - is the workspaceID