Download config from ESP8266

I need to download the config from my old ESP8266 as i can't remember the wifi password
i configured.

I know how to upload config from my windows pc to the esp8266 using arduino ide but is there anyway i can download it from the esp8266 to my windows pc.

Thanks

with AT firmware it is AT+CWJAP?