Make sure that you pull the hard drive that have XP out first.
After that you install Win 8.1 onto a clean or new hard drive then put the hard drive that have XP back in. This way just in case one of those hard drive fail to boot or load least that you still have the other one that have it own boot up.