Hi,
Probably you are talking about a Laserjet printer. From Windows XP to Windows 8.1 is more than 10 years apart and very good to see an old printer like this can print. New CHEAP printers now won't live that long. Back to your question, please check the following link:
http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c03168175
If it is on the list, you may be able to get SOME functions, not all. If it is NOT on the list, probably it's time to buy a new printer.
Regards.