> But what do they do to the steam once it gets to the top of a building?
There are return lines that bring the hot water back to the plant. But the steam from the central system never gets to the top of a building. The heat from that steam gets transferred to the building's own closed system through a heat exchanger. The process is described here: https://en.wikipedia.org/wiki/District_heating#Heat_distribu...