If the other HDD has XP on it then umm no. XP's activation will cry and will see the computer as a new one...
...Which it is!
Windows 98/ME (maybe 2000) you should be ok. I have actually done it with 98 it took it time but we got there in the end.
Huawei P10 review
1995-2015: How technology has changed the world in 20 years
An overview: What leading creative agencies are doing to improve diversity
New iPad, iPhone SE & Red iPhone 7 on sale now