It gets a little complicated. The best way is if you know the supply and return temp of the water and the flowrate. Then you can calculate it directly. Otherwise you need to calculate it from the heat transfer properties. You'll need water flowrate, pipe thickness, pipe heat transfer coefficient, airflow, etc.