You can connect your photosmart printer to your new PC and then you can download the driver for it via the link below and select Windows 10 64 bit as the OS and proceed in downloading the Software-Print and proceed from there.
https://support.hp.com/us-en/drivers/hp-photosm...
___________________________________________________________
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
___________________________________________________________