Try these options:
brew list
brew list --versions
brew list --cask
brew leaves
brew deps --tree --installed
brew bundle dump && cat Brewfile && rm Brewfile
source: https://apple.stackexchange.com/questions/101090/list-of-all-packages-installed-using-homebrew
Try these options:
brew list <package-name>
brew list --verbose mysql
brew ls --verbose mysql
brew upgrade pyenv
brew info <name>