The passwords are stored in a directory called “wpa_supplicant.conf” but it’s locked from access unless you root your phone or use special software. Rooting isn’t entirely necessary, but you’ll need to use the right tools.