Source: Homebrew FAQ
See also man brew
First update the formulae and Homebrew itself:
brew update
You can now find out what is outdated with:
brew outdated
Upgrade everything with:
brew upgrade
Or upgrade a specific formula with:
brew upgrade <formula>
To view installed software:
brew list
/opt/homebrew/Cellar//usr/local/Cellar/