Hi @Muralikrishna Pirla ,
Thank you for posting query in Microsoft Q&A Platform.
mssparkutils.runtime.contextcan get you workspace name information for you.
Please check below screenshots for better idea.
Please check below resource to know more about mssparkutils.runtime.context.
MSSparkUtils Runtime Utils in Synapse Notebook in Azure Synapse Analytics
Hope this helps. Please let us know if any further queries.
--------
Please consider hitting Accept Answer. Accepted answers help community as well.