Comp help

i have an hp computer with windows ME installed when bought .

i have a windows xp home edition CD that i want to install on this computer which was given for a dell pc .

will i be able to install it?

can i install it and not lose my data on the hard drive?