If you enable MPI (using -DDEAL_II_WITH_MPI) then the cmake output will specify which version of the MPI library you are using.
If you wish to specify in particular a version, you can pass it using additional argument. For example -DMPI_CXX_COMPILER=...
If you wish to see all possible variables you can specify, an easy way is to use ccmake to see all configuration options. You can toggle advanced configuration options to see all variables available to you.
Hope that helps
BB