Dodgy Chinese capacitors will rot just sitting on a shelf due to an instable electrolyte formula that breaks down. Better (still somewhat junk) Chinese capacitors won't, and their lifespan is more a matter of internal resistance causing heat during use, and the same is true for quality Japanese caps but they tend to have lower internal resistance (ESR) if a suitable part is selected for the application.
After sitting for these years, the oxide layer in the cap has degraded some and through a few hours of use will be reformed, I mean for the electrolytics, solid caps don't have this issue. Performance maintaining low ripple may be compromised during this reforming process, but these days most components in a PC, step down the voltage from the PSU to something lower anyway and excessive ripple is more a matter of a slight stability decrease rather than damaging levels.
So what I would do is turn the system on, leave it idling in windows (not bios, so at windows power managed low power state) for a few hours instead of immediately going full bore into high load stress testing or gaming, etc.
Odds are that they are fine to reuse, with their lifespan depending more on hours already used, particularly at high load, but you might want to relube the fan(s) if any are sleeve bearing.
If you wanted to be extra paranoid or cautious, you could instead power them up jumpering the PS-On pin to ground, powering a slight 12V load like an old HDD and just leave that running a few hours and measuring voltage instead of subjecting a whole system to it, but I've powered up many old systems after years of storage and never had this be a problem, mostly they just needed a new battery and a few stored in a basement needed cobwebs cleaned out.
At the same time, remember what I stated about some dodgy chinese caps failing just from sitting, which means if any are on a video card or motherboard they may have failed from sitting this long too, but otherwise will also improve from reforming the cap oxide layer from a few hours idling along. This sitting shelf rot issue was mostly seen in the early P4 and Athlon or older era.