To find your Windows 11 OEM product key, open Command Prompt or PowerShell as administrator, then enter: wmic path ...
If you’re using Windows 11 instead of Windows 10 ... you can use that tool to locate your Windows 10 product key instead.