I have done something similar when I signed up for the standalone Microsoft Intune subscription, which includes Windows desktop OS licenses. When I did this I was given access to the Volume Licensing portal and could download Windows OS ISOs and see the license keys.

 

I am assuming of course that Microsoft 365 does it the same way.

 

Hope this is helpful.

www.000webhost.com