if you format the drive (partition) with Windows installed (most of the time "C") then you will need a Windows XP disc in order to re-install the system. There is no way to format a drive and leave data. A format is completely erasing all the data on that drive (partition).
If he bought another copy of XP it should work fine. (assuming it is a retail copy and not manufacturer specific)