Let $G$ be a topological group and $BG$ its classifying space. From the LES of the universal bundle, we get $\pi_i(BG)\cong\pi_{i-1}(G)$, so given the classifying space, we know all homotopy groups of $G$. If $G$ is discrete, then $\pi_0(G)\cong G$, which shows that we can reconstruct the group $G$ from its classifying space.
Surely this does not work for topological groups, but what is a small concrete example, where $BG$ and $BH$ coincide, but $G$ and $H$ do not?
I'm intentionally unprecise what I mean by "coincide", since I'm curious for different answers.