What you've essentially described is a geothermal or ground source heat pump.
http://en.wikipedia.org/wiki/Geothermal_heat_pump
I don't think that your specifics will work too well, as it tends to require more underground piping than a few meters, but the concept is valid.