Hi Sam,
After a bunch of research, I have found a PowerShell command which meets the requirement:
Get-Mailbox -RecipientTypeDetails UserMailbox | where {$_.PrimarySmtpAddress -like "*onmicrosoft.com"} | Select Name, PrimarySmtpAddress
Best Regards,
Bruce Zhou