You can connect any ground pin or point of the PI to an earth wire, a wire to a stake in the ground, a water mains, the central heating, or the ground provided by your mains sockets. For safety reasons you should not connect directly to the ground connection of your mains sockets, since in the even...