How to check the version of an application installed with Homebrew (Mac)?

To see which version(s) of a particular utility you have installed using brew, e.g. gcc, use:

brew list --versions gcc