This already happens without the use of bitcoin. People with solar panels can generally sell excess production (that generally occurs during peak demand times) back to the "grid" at retail prices. The cost of transmitting this energy is borne by the utility companies (and are ultimately socialized).
I do not think using "green" energy is a good way to use miners to make bitcoin