How to get active license information using API?

Hello,

I would like to know how to get active license information (e.g MBD license) or its key number in SolidWorks using API.

Thanks and Regards,

Mahadev

SolidworksApi/macros