Hi ,
In this case, you can use the WinRE procedure, which will reinstall Windows 10 as standard. You can also use the ISO procedure.
Now, the best recommendation would be via USB flash drive. If you're going to use this method, simply install the same edition and log in with your Microsoft account. Windows will be activated.
You can also write down your key using the free ShowKeyPlus program.
Give feedback if the information was useful or not.
Thanks