You could get a external DAC (Digital to Audio Converter)It will take the digital signal from your PC via USB, covert to analog before sending it to your stereo.
You could also look at getting a better Amp, speakers and headphones depending what and how you listen too.
Did you have a budget in mind? Im not really sure how much of a improvement you will get from software, but could be worth posting what programs you use, and someone with more knowledge them me will be along with recommendations.
Speakers don't really benefit much off of external devices (as long as they are powered). You can grab a DAC but you'll get very marginal if not 0 audio quality improvements.
First thing to do is to upgrade your speakers and acoustically treat your listening room. Most people never do the latter because it's either not easy or costs quite a bit or both. Still, room is a huge, huge part of the sound and if you truly want the best sound, acoustic treatment is a must.
DAC's and even amplifiers come far second for sound quality (here sound quality means faithfully reproducing the original signal), as long as you already have "good enough" equipment. These days that usually means that the equipment isn't faulty or designed to be faulty (both high-end and general consumer equipment suffer from this equally).
Speakers and the room are never good enough. They always add coloration to the sound, while even cheap amplifiers and DAC's can (arguably) be good enough in the sense that imperfections they add to the signal cannot be discerned by human ear.