If it still works, it can be sold to a computer shop or donated to people in need. However, before selling or donating, please pay attention to cleaning up private files. It is best to reformat the hard disk several times and reinstall the system before handling it.
If it can't be used any more, sell it to a waste station. Some things can still be recycled.