If it came preinstalled, a reset should be able to read the license key in motherboard, that is, if the license was embedded in motherboard.
Launch Powershell (note, it is not Command Prompt, but Powershell), and run this code to see if you have an OEM license on the motherboard.
(Get-CimInstance -ClassName SoftwareLicensingService -Property OA3xOriginalProductKey).OA3xOriginalProductKey