State governments usually are required to place all of their computers up for sale through surplus. (Hard drives usually removed and destroyed). I have been through that process at a State College and a University. They aren’t just thrown away. I imagine there is a similar process for federal computer.