|If I'm understanding you correctly.......|
XP has to be installed "on the hard disk" where the disk normally resides. You can't install it with the hard disk in one machine then move the hard disk to another machine. It won't run.
The only exception is if the two machines are exactly identical.
It's a good day when you learn something