You can't transfer the licence, soblegally you can't do this.
But yes you can swap out hard drives, I have never encountered an issue since windows 7 was released.
I just make sure all the manufacturers drivers are removed before placing it in another computer.
yeah if you sysprep it, but I didnt want to get to technical
plus its always best to do a fresh install and restore data from backup.