as Rocky said, don't need licence off drive, Its on a Microsoft server, they are ones who track it now
just run the installer on new hdd, when you reach the screen asking for licence, click "I don't have a key" and win 10 will continue to install and reactivate once finished. Provided you put it on same PC.
If you install onto old drive again: On the screen where you choose where to install win 10, if it gives you an error about GPT drives, delete all the partitions on the hdd and press next. If it still gives error, cancel out of the installer and restart PC and start installer again, it will accept next on that screen this time (some PC just need a restart here)
since you installing on new PC, and may not have linked it to a Microsoft Account before, do the same process as above except it won't activate. Need to contact Microsoft once its on PC and argue your case. If you using same email address as before, they may move licence over for you. You can find contact details in settings/update & security/Activation
you need a new version of installer to do this: download the
Windows 10 media creation tool and use it to make a win 10 installer on USB