As charlatan1978 said, just install Windows 10 on the new hard drive, and your computer should activate automatically. I just did this yesterday on five computers. This is assuming your computer is a newer one with the product key embedded in the machine, and not an older one with a product key sticker.