This could be a compatability issue with the HP software and Windows XP. You may have to scan from a different program such as paint. Look at this link, I Can't Scan in Windows Using HP Software, for a workaround.
You could also try the HP Scan Diagnostic Utility.