If they can somehow 3D print titanium pipes into the magma, sealed real good, the water running would exchange the heat.
The Centralia coal mine fire as been going around 20 years ...At its current rate, it could continue to burn for over 250 years. How about they do a trial run on that fire! LOLOL