A League is approximately 5 kilometres according to google, but the deepest water in the world is Mariana's Trench which is 11km deep.
20,000 leagues = 100,000km...
Even for a book, that seems pretty unrealistic having submarines travelling 100,000 km underwater... (or even just that amount of water existing!)