If you upgraded and used a Microsoft account then the key is stored online, no need to enter the key during setup. If not and you are reinstalling Windows then you need a utility like Magic Jellybean key viewer to find the product key and make a note of it. If this is a completely clean install on a new PC then you need to buy a license.