What is that thing you call yourself? gschnetje? Ok, I'm going to have to inform the name police. Whatever you're calling yourself can't be pronounced, and that's illegal in 5 European nations, Japan, Mexico and the US.
Please ignore that silly Brew man

, he seems to be thinking you want to utilize the thermal energy to produce work which will create electricity or some such thing. He's correct in assuming the energy won't be worthy but that's not what you're asking. What you want to do is simply remove the heat energy you added to the water by returning it to the shower. That's simple, and in fact I'm glad you asked. I've been tempted to do the same thing for a very long time, just never had the interest in calculating the benefit. Now that I have, I'll try and do something about it for sure!
Imagine the water coming into your home at some pressure and temperature. The water is then split, some of the cold going directly to the shower, and some going first to your hot water tank and then to your shower.
Here's what you need to do: While you're standing in your shower, measure the temperature of the water coming out of the shower head. Then measure the temperature of the water going down the drain. Also, stand there with a 1 gallon bucket and see how long it takes to fill. The last thing you need to do is figure out how much you're paying per unit of energy. If you have an electric water heater for example, and you pay 0.06$ per kilowatt hour, that is the only additional bit of information needed. You also need to figure out how long it takes you to do the shower thing and how many showers per month you & others in the home take.
I believe the most efficient way of recovering the heat from your shower is to simply pass the drain water through a heat exchanger and warm up the water coming into your home. That way, you're actually warming not just the cold water coming into your shower, but the cold water that will wind up in the hot water system as well. If we do this, the enthalpy difference of the drain water will equal the enthalpy difference of the cold water coming into the home. You save the amount of money equal to the cost of the energy which is equal to the enthalpy difference of the cold water coming into the home (equals the enthalpy difference of the water going down the drain). But to do this you need a few guesses as to those variables I gave you above.
Assuming:
Shower flow = 2 GPM (kinda slow actually)
Water temp into the house = 50 F
Water temp at shower nozzle = 100 F
Water temp at drain = 95 F
Approach temperature of heat exchanger = 5 F (pretty efficient heat exchanger!)
Cost of energy = $0.06 /kW-hr
Average shower length = 10 minutes
Then the cost savings per shower is roughly $1. US. If you have other variables you'd like to put into the mix, just post them and I'll put them in the spread sheet I created for this. It's pretty simple really, and hopefully I didn't make any dumb mistakes, though I must admit, I'm not idiot proof! LOL
One point: The "approach temperature" for your heat exchanger is a difference between the water temperature of the drain water leaving your heat exchanger and going into the sewer - and the temperature of the water coming into the home. Designing the heat exchanger is the next step, though that’s not much harder actually.