A single well, or pond, or buried loop, or any other adequate heat transfer source could indeed serve several water-source heat pumps.
If you are asking if a single air handler/indoor unit could serve both buildings, the answer is no. Not practical.
Any such system would start with a proper load calc for both buildings.
As always, offered only as opinion