Product key for Windows 8.1 is embedded in BIOS of your machine. Please use the following tool to find out
https://www.magicaljellybean.com/keyfinder/
Why you have to activate Windows 8.1, it should activate automatically using the embedded key.
Regards.