If it’s indeed from this era, you might want to upgrade several things for it to run smoothly.
It’s not prohibitive to just throw another drive with win10 and have it run, but performance will be poor.
Good thing with desktops, however, is that you can always upgrade (I have my old tower from 2003 with new components, runs like a charm).
If you want to put some time into it, you can build a technically new PC for less money than if you bought it pre-assembled. Around 400 euro should be enough to build a low end PC (assuming it’s for basic usage).