XP doesn't have scandisk, it has chkdsk (check disk).
You can skip running chkdsk if you press a key within the first few seconds - read the text on the screen.
If you then boot into Windows, go to Programs - Accessories - System Tools - System Restore, and load a previous registry that is before the power outage happened.
That may be enough to fix the problem.
If you still have problems, some of the data on the hard drive is probably damaged.
If that doesn't help, if your computer is not plugged into a device that protects it from power surges and spikes, or even if it is but less likely, something may have been damaged by the power outage. The most likely component to be damaged is your computer power supply. Go into the bios Setup while booting and take a look at the current voltages on the appropriate page in the bios - +12, +5, and +3.3 volts should be within 10% of those values; your VCC (cpu core) voltage(s) should be within 5% of the value it's supposed to be for your cpu. If any of those voltages are too high or too low beyond that range, the power supply is damaged. Even if the voltages are okay the PS may be damaged.
If the computer continues to reboot no matter what you do, even if you disconnect the data cable to the hard drive (turn off or otherwise remove the power to the computer case before you do that), the power supply is probably damaged.
If you suspect the power supply might be wonky, if you can, try the power supply in another computer, or try another power supply in this computer. The colors of the wires and number of wires to the main connector from the power supply must be the same.