In 2013, the estimated length of all the electric grids in the world was 57 million km, including transmission power lines and distribution power lines.
If you want to know more, please go here. This data was sourced from the book Transportation and the Belt and Road Initiative, in which more data as well as the original primary sources of the data are available.