Yes, these are just the finite groups in which all involutions (elements of order $2$) lie in $O_{2}(G),$the largest normal $2$-subgroup of $G,$ using the Baer-Suzuki theorem. Clearly, if every involution of $G$ lies in $O_{2}(G)$, then all dihedral subgroups of $G$ are $2$-groups. On the other hand if $G$ has no dihedral subgroup of order $2p$ for any odd prime $p,$ then whenever $t$ is an involution of $G,$we see that for each $g \in G,$ the dihedral group $\langle t,t^{g} \rangle$ is a $2$-group, so $t \in O_{2}(G)$ by the Baer-Suzuki theorem.