Here is the CNOT gate:
$$CNOT = |0\rangle \langle 0|\otimes I + |1\rangle \langle 1| \otimes X$$
So:
$$(I \otimes H) CNOT (I \otimes H) = |0\rangle \langle 0|\otimes HH + |1\rangle \langle 1| \otimes HXH$$
If we will take into account $HXH = Z$ and $HH = I$, then:
$$(I \otimes H) CNOT (I \otimes H) = |0\rangle \langle 0|\otimes I + |1\rangle \langle 1| \otimes Z = CZ$$
Let's show that $CNOT = |0\rangle \langle 0|\otimes I + |1\rangle \langle 1| \otimes X$:
$$ |0\rangle \langle 0|\otimes I + |1\rangle \langle 1| \otimes X = \begin{pmatrix}1&0 \\ 0&0 \end{pmatrix} \otimes\begin{pmatrix}1&0 \\ 0&1 \end{pmatrix} + \begin{pmatrix}0&0 \\ 0&1 \end{pmatrix} \otimes\begin{pmatrix}0&1 \\ 1&0 \end{pmatrix} =
\\
=\begin{pmatrix}
1&0&0&0 \\
0&1&0&0 \\
0&0&0&0 \\
0&0&0&0 \\
\end{pmatrix} +
\begin{pmatrix}
0&0&0&0 \\
0&0&0&0 \\
0&0&0&1 \\
0&0&1&0 \\
\end{pmatrix} =
\begin{pmatrix}
1&0&0&0 \\
0&1&0&0 \\
0&0&0&1 \\
0&0&1&0 \\
\end{pmatrix} = CNOT$$