Let me call $L = \mathbb{Q}[\omega]$, $\alpha = \omega ^{n}$ and $\beta=\omega^{p^k}$. Moreover, let me call $M = \mathbb{Q}[\alpha]$ and $N=\mathbb{Q}[\beta]$. Then $M$ is the $p^k$-th cyclotomic fiel, and $N$ is the $n$-cyclotomic field. Recall that we are working with abelian extension, then $D$ and $E$ do not depend on the prime $Q$ in $L$ lying over $p$. We know that $ref = \phi(m)$, where $e = \phi(p^k)$ and $f$ is the smallest integer such that $p^f \equiv 1 \bmod $.
Claim: $D(Q|p) \cong D( (1-\alpha)|p)_{\alpha} \times D(P|p)_{\beta}$, where the subscripts point out the obvious belonging.
Indeed, $(1-\alpha)$ is the unique prime lying over $p$ (I'm following the proof of Theorem 26 in Marcus's book). In particular $p \mathbb{Z}[\alpha] = (1-\alpha)^e$. then $|D_{\alpha}| = e$. Furthemore, $p$ does not divide $n$, thus in $N$, $p$ is unramified, i.e. $p \mathbb{Z}[\beta] = P_1 \cdots P_r$. Following again the proof of Theorem 26, we know that $|D_{\beta}|= f$. Then $|D_{\alpha} \times D_{\beta}|= ef = |D|$. Therefore, there is a little hope that my claim is true.
By assumption, $D \cong ( D \cap G(L/M)) \times (D \cap G(L/N)) = D(Q|(1-\alpha)) \times D(Q|P)$ (it comes from $\mathbb{Z}_m^{*} \cong \mathbb{Z}_n^{*} \times \mathbb{Z}_{p^k}^{*}$ i.e. $G \cong G(L/M) \times G(L/N)$). Now, using exercise 10 chapter 4 in Marcus, you find out $D(Q|(1-\alpha)) \cong D_{\beta}$ and $D(Q|P) \cong D_{\alpha}$.
Arguing as before, you are able to prove $E \cong E_{\alpha} \times E_{\beta}$.
Moreover, it is worth noting $E \cong D_{\alpha} \cong E_{\alpha} \cong \mathbb{Z}_{p^k}^{*}$ and hence I suggest you to take a look at this question