CmdID / PowerShell / Cmdlets / Get
Get-ExchangeServerAccessLicense
Use the Get-ExchangeServerAccessLicense cmdlet to return a list of licenses in use in your Exchange organization. Exchange PowerShell reference
From the Exchange PowerShell reference Its page in the reference