Boot from the XP CD and it will run setup you shpild get a screen where it finds the previous version and asks
Setup will scan for previous Windows installations
Choose the location to install. Make sure you select your second partition (D:)
When windows has finished installing, on the next reboot you should be automatically offered a choice of which installation to boot into.