What about using an external drive to migrate the data from the IDE drives and then reformat and reload XP? The problem is the boot sector is corrupted.
That boot sector issue is from the drive, not the computer, your original post said the computer was dead and you wanted to re-use the drives. I would not run old IDE drives in a computer, they are a lot slower, and older so have a high chance of going bad, if not bad already.
I would just replace the computer with something more modern with Windows 7 or 10 on it.