The license is usually tied to the motherboard, not the hard drive.
So you can reinstall Windows 10 and it should automatically activated.
If it is not activated automatically, refer to the following fix: Windows 10 Activation Lost After Hardware Change
Do it properly: recover the key then install Windows 10.
To recover the key from your existing Windows installation you can use tools like KeyFinder (https://www.magicaljellybean.com/keyfinder/). This is a legitimate tool to use since you own the Windows 10 licence as you purchased that with your laptop.
Then download Windows 10 from Microsoft's official ...
You need to copy the whole hard disk drive onto the new one, from byte to byte. It is called a "sector-level copy" or "cloning".
Most tools of the Microsoft world are incapable of making it, because it is a too simple thing for them, and their complex thought processes are incapable of handling it.
dd if=/dev/sda of=/dev/sdb
Macrium Reflect is an excellent piece of software which will do this for you.
Download & install Macrium Reflect to your current system.
It doesn't hurt to clean up temporary files to reduce the size of the backup at this point.
A - Backup procedure:
Preferably connect an external hard drive, via USB, to the laptop as
the backup target.
Run "Reflect" ...
I don't think third-party software is required here. This is how I did all my HDD/SSD system drive replacements in the past. It requires:
An external hard drive of sufficient size.
A new internal drive which is at least as large as the old one. Do yourself a favor and get yourself an SSD as the new drive!
Bootable Windows 10 installation media on a DVD or ...
gparted is a linux based boot disk/boot flash program that few would consider limited.
from the site:
Perform actions with partitions such as:
create or delete
resize or move
set new UUID
copy and paste
Manipulate file systems such as:
ext2 / ext3 / ext4
fat16 / fat32
hfs / hfs+
reiserfs / reiser4
You don't need a third party software to achieve what you are asking. Windows 10 has built in features that enable you to clean junk and free up space in your PC.
Simply in the search bar search for 'storage settings' and click 'temporary files'. Wait for a couple of minutes for it to stop loading and then you can see what you can delete that won't harm ...