nope it's not possible.
linked server password, remote credential password, and also the password used for smtp authentication for any mail profiles are stored in a CREDENTIAL object, and there is no way to reverse engineer/read the value from the database.
so you can script out the settings, and enter the correct value into the script afterwards(if you know it)
but there is no way to get it from SQL.
Lowell