Install a drain heat recovery unit: worth the effort?
pingswept.org
a nice back of the envelope calc to figure out if it's even worth your time thinking about it...
pingswept.org
Or even better, get a heat pump that combines hot water and building heat. They're not cheap though.
If you're interested, see http://en.wikipedia.org/wiki/Thermal_efficiency
You'd often be better off putting that money towards a solar hot water system. Thermomax evacuated heat tubes work almost anywhere, and aren't subject to the same service life limitations as photovoltaics and batteries.