Some definitions and notation
A procyclic group $G$ is a profinite group with a dense cyclic subgroup, or equivalently, $G$ is isomorphic to an inverse limit of discrete finite cyclic groups.
We denote the profinite completion of the integers (resp. the $p$-adic integers) by \begin{equation} \hat{\mathbb{Z}}=\varprojlim\mathbb{Z}/n\mathbb{Z} \qquad\qquad\qquad\mathbb{Z}_{p}=\varprojlim\mathbb{Z}/p^{n}\mathbb{Z} \end{equation}
Question
I've learned the fact that a torsion-free procyclic group $G$ is (topologically) isomorphic to product \begin{equation} G\cong\prod_{p\in S}\mathbb{Z}_{p}, \end{equation} where $S$ is some set of rational prime numbers. In particular, that \begin{equation} \hat{\mathbb{Z}}\cong \prod_{p\in P}\mathbb{Z}_{p}, \end{equation} where $P$ is the set of all prime numbers.
There is also the fact that a closed subgroup $G\subseteq\hat{\mathbb{Z}}$ is procyclic, which then implies that $G$ is isomorphic to a product of $\mathbb{Z}_{p}$' s over some set $S$ of primes.
Now, we can take some closed subgroups of $\prod_{p\in P}\mathbb{Z}_{p}$ which are obviously isomorphic to such a product of $\mathbb{Z}_{p}$'s, for instance, all of the subgroups of the form \begin{equation} 2^{i_{2}}\mathbb{Z}_{2}\times 3^{i_{3}}\mathbb{Z}_{3}\times 5^{i_{5}}\mathbb{Z}_{5}\times\dots \end{equation} with $i_{p}$ ranging the positive $(\geq 0)$ integers (and $\infty$ to represent the $\{0\}$ subgroup of $\mathbb{Z}_{p}$), for each prime $p$.
(This is due to the fact that $\mathbb{Z}_{p}\cong p^{i}\mathbb{Z}_{p}$ for each $i\geq 0$.) Note that the $\{0\}$ factors just make the prime vanish.
So, my question is: Can we describe the closed subgroups of $\prod_{p\in P}\mathbb{Z}_{p}$ as subsets?
I guess they are all of the above form, but since subgroups of a direct product are not simply products of subgroups, I'm not sure how to prove this. Do we even know if this is true?
I'm trying to get a clearer picture on the 'structure-lattice' of $\hat{\mathbb{Z}}$.
Thanks for any help or references!