The machine is 15 to 20 years old. Your requests for XP support are not going to be successful. XP does not support advanced format or SSD's out of the box.
XP installed and formatted from another machine would not activate nor would it work. It would in fact crash with Stop 0x0000007B (INACCESSIBLE_BOOT_DEVICE)
Drives on a 240 must be installed with the drive set for CABLE SELECT on the IDE adapter.
The KINGWIN ADP-06 adapters come that way.
You then F12 boot from the CD and install accordingly.
The 240 is also soooooo old that it likely came with WIN98SE or Windows 2000 not XP.
Best option to keep using xp and then upgrade later on is an OPTIPLEX GX620 Mini Tower or newer.
This specific unit will be 500 percent faster than your 240 and run all software from MSDOS and Windows 3.1 to windows 10 inclusively.