So cooling 10 cubic kilometres of rock by say 50C releases 790J * 2700 * 1,000,000,000 * 50 * 10 = 10^18J or 600MW of heat over 50 years. At 33% efficiency your talking 200 MW of electricity for 50 years assuming 100% capacity factor and ignoring how fast it recharges.
If it’s a backup for solar and wind at 50% capacity factor then you could double the power output or double the lifespan.