The most direct method for finding your Windows 10 product key is from the command line. Type “cmd” into the Windows 10 desktop search box and then right-click the command line result and select “run as administrator” from the context menu. Type this command at the prompt:
wmic path softwareLicensingService get OA3xOriginalProductKey
As you can see in Figure A, the command will display your current Windows 10 product key.
Figure A
https://support.microsoft.com/en-us/windows/activate-windows-c39005d4-95ee-b91e-b399-2820fda32227