Get license quantity via API

Hi!

Is there any way to get how many SolidWorks licenses our server has and how many are in use, only using SW API ?

Thank you!

SolidworksApi macros