SQL database how do I see the database info

Is there a way to see your database’s info like the server, database name, userid, and the password??