Install Windows 10 and Windows XP on the same machine, but two separate hard drive

Not possible (at least to within 99%). Windows XP is too old to run on modem hardware.

The very best you can do is run run XP in a virtual machine inside Windows 10. This will work - I have it running here.

Make sure the host machine is fast with a fast SSD drive.