It's called a "ground source heat pump".
Unfortunately, they require either a very large area to dig very shallow, or they require drilling down very deep, or they require a pond.
I got quotes for the drilling once, and it was prohibitively expensive.