The lifespan of your desktop PC is heavily dependent on how well you care for it. It’s not unusual for a desktop PC to last five or six years, and we’ve personally seen PC’s last for more than ten.
Of course, you will most likely eventually need to upgrade some of the hardware, but as long as you continue to keep it free of dust, it’ll serve you for many years.