Go to tools-->options-->security--->saved passwords-->show passwords ,u can see all ur saved password to the corresponding websites
If u want to saved all settings of Firefox and then transfer them after u format ur hardrive.Use this tool,which allows u to take backup and transfer them
Firefox Environment Backup Extension.You can even transfer the settings to a different browser.
PS:Never make the mistake of just saving ur passwords