Tesla supply power

Hello,
Is that possible to have the power delivery by the provider (for me Hydro Quebec) as a sensor ?
I would like to estimate the energy consumed by the car, and possibly evaluate the energy cost.

Best regards
Thierry