If your PC came with Windows 8.1 pre-installed, the product key is likely embedded in the BIOS and will activate automatically upon reinstallation.