Run the Activation Troubleshooter.
Ref: Using the Windows Activation troubleshooter
Check your Microsoft account online, as digital licenses are linked to it.
Try to restore the Product Key from backup or email.
Open Command Prompt as Administrator and copy-paste the following command:
slmgr /dlv
It will show you detailed license information.