The total volume of water in the world's oceans is reported to be about 1.4 billion cubic kilometres. Taking the Earth to be a sphere of radius 6400km, gives the world's surface area to be 510 million square kilometres. Dividing the volume by the surface area gives the average depth of water as just under 3 metres.
volume of earth's oceans divided by surface area of earth in the search box of WolframAlpha.com search engine gives a pretty good approximation of 2.7km.