Emerald is right on, it totally depends on the environment. A properly maintained motherboard should last you quite a while. My folks have a rig that I build for them (and maintain for them) that has been running for about 8 years. I blow it out occasionally. It pretty much runs all the time.
One thing you don't really want is a case that is excessively hot. If you cram a ton of stuff in a case without the proper air flow, things will get hotter than they are supposed to, causing premature failure.
Is it a toy or does it actually get used for something?
It's gone now if you're wondering.
It was something that's left in the storeroom unused for years.
Ok. I was just curious if it was being used for something. I have heard of older computers being used to run older wood or metal lathes that couldn't be adapted to a more modern computer and virtualization wasn't an option with the software.