@bocs @ifixcoinops energy.gov/energysaver/drain-w

There are drain water heat exchangers available. But your money's better spent on insulation and heat pumps in most North American houses.