In this paper, we apply the angle-resolved optically detected magnetic resonance (ODMR) technique to study a series of strained (Cd, Mn)Te/(Cd, Mg)Te quantum wells (QWs) produced by molecular beam epitaxy. By analyzing characteristic features of ODMR angular scans, we determine the strain-induced axial-symmetry spin Hamiltonian parameter $D$ with neV precision. Furthermore, we use low-temperature optical reflectivity measurements and x-ray diffraction scans to evaluate the local strain present in the QW material. In our analysis, we take into account different thermal expansion coefficients of the GaAs substrate and CdTe buffer. The additional deformation due to the thermal expansion effects has the same magnitude as the deformation that originates from the different compositions of the samples. Based on the evaluated deformations and values of the strain-induced axial-symmetry spin Hamiltonian parameter $D$, we find the strain spin-lattice coefficient ${G}_{11}=(72.2\ifmmode\pm\else\textpm\fi{}1.9)$ neV for ${\mathrm{Mn}}^{2+}$ in CdTe and shear deformation potential $b=(\ensuremath{-}0.94\ifmmode\pm\else\textpm\fi{}0.11)$ eV for CdTe.