One should note that the family here may not countable. If it is countable, the it is a consequence of the following results;
Lemma 1. the product of countable totally bounded metric spaces is totally bounded.
Lemma 2. Every uniform space is uniformly isomorphic to a product of metrizable uniform spaces.
Lemma 3. The product of uniform spaces is uniform induced.
How about the case when uncountable?

The proof depends on which theorems you allow to use. You certainly can give a direct proof, but in my opinion the most elegant way is this:
Theorems used:
(1) Each uniform space $X$ has a completion $X'$ (i.e. a complete uniform space containing $X$ as a dense subset).
(2) If $X$ is totally bounded, then $X'$ is totally bounded.
(3) A uniform space is compact if and only if it is complete and totally bounded.
Proof:
If $P = \Pi_{s \in S} X_s$ is totally bounded, then each $X_s$ is totally bounded because it embeds as a uniform subspace into $P$.
If all $X_s$ are totally bounded, then the completions $X'_s$ are compact. Therefore $P' = \Pi_{s \in S} X'_s$ is compact. Since $P$ embeds as a uniform subspace of $P'$, it is totally bounded.