Let us start with a few known relationships for neutral fluid shock waves:
$$
\begin{align}
\frac{ P_{2} }{ P_{1} } & = \frac{ 2 \ \gamma }{ \gamma + 1 } M_{1}^{2} - \frac{ \gamma - 1 }{ \gamma + 1 } \tag{0a} \\
\frac{ \rho_{2} }{ \rho_{1} } & = \frac{ U_{1} }{ U_{2} } = \frac{ \left( \gamma + 1 \right) M_{1}^{2} }{ \left( \gamma + 1 \right) + \left( \gamma - 1 \right) \left( M_{1}^{2} - 1 \right) } \tag{0b} \\
C_{s j}^{2} & = \frac{ \gamma \ P_{j} }{ \rho_{j} } \tag{0c} \\
M_{j} & = \frac{ U_{j} }{ C_{s j} } \tag{0d}
\end{align}
$$
where $P_{j}$ is the scalar pressure in the jth region ($j = 1$ for upstream, $j = 2$ for downstream), $\rho_{j}$ is the mass density in the jth region, $U_{j}$ is the bulk flow speed along the shock normal in the shock rest frame in the jth region, $C_{s j}$ is the speed of sound in the jth region, $M_{j}$ is the Mach number in the jth region, and $\gamma$ is the ratio of specific heats or polytropic index. Equation 0c derives from the assumption that the change across the shock ramp is fast enough that an adiabatic compression can be assumed. Equation 0b comes from the Rankine-Hugoniot relations.
First, to simplify things let $\delta \equiv \tfrac{ \rho_{2} }{ \rho_{1} }$ and $\alpha \equiv \tfrac{ P_{2} }{ P_{1} }$, then we can define the following after a little algebra:
$$
M_{1}^{2} = \delta \ \alpha \ M_{2}^{2} \tag{1}
$$
which we can use to replace $M_{1}$ in Equations 0a and 0b. We solve the altered version of Equation 0a for $\delta$ to find:
$$
\delta = \frac{ \left( \gamma - 1 \right) + \left( \gamma + 1 \right) \alpha }{ 2 \ \gamma \ \alpha \ M_{2}^{2} } \tag{2}
$$
Next we set Equation 2 equal to the altered version of Equation 0b and solve for $\gamma$. There are two solutions but only one of them is physically meaningful for a shock, i.e., a compressive sound wave where $\delta$ > 1. That solution is given by:
$$
\gamma = \frac{ 1 - \delta }{ 2 \ \delta \ M_{2}^{2} - \left( 1 + \delta \right) } \tag{3}
$$
If I use $\delta$ = 10.6 and $M_{2}$ = 0.495, then I get $\gamma$ ~ 1.499 or nearly 3/2. The typical monatomic gas approximation is $\gamma$ = 5/3 ~ 1.67 and for diatomic it goes as $\gamma$ = 7/5 ~ 1.4 (i.e., typical assumption for Earth's atmosphere).
You can also look at some other variations on these expressions at https://physics.stackexchange.com/a/349724/59023 and https://physics.stackexchange.com/a/302879/59023.