to know if the hard disk is good now, you can run both cristaldiskmark and cristaldiskinfo
one test the performance and the other will tell you about the hard disk health
if your hard disk is westenr digital, toshiba or seagate, each manufacturer offers tools to test the health f the hard disk, but often are as good as cristaldiskinfo
no one can tell you how long it will work without issues, but a good hard disk often last 10+ years, way more time than what you plan to keep it in service i think
of course there are brands, or even models that give bad surprises, so remember to have backups of your important files outside that hard disk, a external usb thumbdrive, a external hard disk, or a cloud service, all depends on what you need and how much files you want to backup
btw, did you bought seagate?