No, the operating system ( Windows) “knows” which PC it was installed on. You could copy all your data such as Word, Pictures, Music , spreadsheets etc to a flash or USB Hard Drive and put all that on your friends PC
Before transferring files make a new account in your name (same as the old laptop account name) on the new laptop and check that the account works OK.
You can then delete your friends account to save space.
This will save problems with ownership of files.
As for swapping drives if the specs are exactly the same it should work - if it was an upgrade from 7 or 8 to 10 then number is stored on MS servers if 10 was shipped as new with the laptop make sure ou can get the number off the sticker (and keep it safe somewhere incase you need to reinstall windows at anytime
Thanks for the feedback. The problem is the hinge attachments that are moulded into the plastic are snapped and are unrepairable. The original hd has been upgraded to win10 when it was free to do so. The make and model are the same but I will have a good look at the specs.