go to hps website and do a search for your specific computer model in their drivers section. Check the drivers available. If there are any drivers for newer operating system, then you should be able to update. Only update to whatever os the driver is made for.
You can stick with XP but you should worry about security. I wouldn't do anything that would put my financial details or personal data at risk. An anti virus would help but there are many attacks that wouldn't be caught! Ransomeware is a real concern so make sure you have backups.