I have recently started studying Statistical Mechanics, and through my study of Classical Statistical Mechanics, I have studied how do we write distribution functions for equilibrium systems which can be isolated(micro canonical ensemble) or exchange only energy (canonical ensemble) or both matter and energy (grand canonical ensemble) with the surrounding. However, we never deal with processes like we did in thermodynamics i.e. isobaric, isochoric, isothermal, adiabatic etc, in which we move our system from one equilibrium to another equilibrium through a series of quasi-static equilibriums and calculate change in thermodynamic variables like $P$, $T$, $V$, $S$ etc.
How do we deal with this in the light of statistical mechanics? I mean how does the distribution function change with time so that we can calculate the changes in thermodynamic variables at the end of the processes?