The hard drive is not the problem. The problem is that the hardware on the 2 machines is not compatible.
That said the the XP licence is not transferable from the e machine to the Dell.
So unless you have the Dell restore disks you will need to purchase them from Dell.
As you were using this drive in the e machine, I suspect the original restore partition was most likely wiped.