Windows 8.1 or 10 users will either have a separate key if Windows was purchased as a standalone product or the key will be embedded in the system BIOS. Windows 7 users will have a product key sticker.
It doesn’t really matter what version of Windows you have, the best way to get your system working at its full speed and as issue free as possible is with a clean install of the operating system.