If $\pi \colon X \longrightarrow Y$ is a cyclic cover of complex projective manifolds of dimension $n$ branched along an ample divisor $B \subset Y$, then by a variation of Lefschetz Hyperplane Theorem one can show that the pullback map $$\pi^* \colon H^i(Y, \, \mathbb{C}) \longrightarrow H^i(X, \, \mathbb{C})$$ is an isomorphism for $i \leq n-1$ and is injective for $i=n$. See

<cite authors="Lanteri, Antonio; Struppa, Daniele C.">_Lanteri, Antonio; Struppa, Daniele C._, [**Topological properties of cyclic coverings branched along an ample divisor**](http://dx.doi.org/10.4153/CJM-1989-021-3), Can. J. Math. **41**, No.3, 462-479 (1989). [ZBL0699.14019](https://zbmath.org/?q=an:0699.14019).</cite>

Using Poincaré duality, from this it follows that all Betti numbers of $X$ and $Y$ are equal, except possibly the middle Betti number, for which we have 
$b_n(X) \geq b_n(Y)$.

On the other hand, in your case we can easily find the topological Euler number $\chi_{\mathrm top}(X)$ by additivity. In fact the ramification locus $R \subset X$ is isomorphic to the (smooth) branch locus $S \subset \mathbb{P}^n$ and the restriction $\pi \colon X - R \longrightarrow \mathbb{P}^n - S$ is an unramified double cover, so we obtain
$$\chi_{\mathrm top}(X) = 2(\chi_{\mathrm top}(\mathbb{P}^n) - \chi_{\mathrm top}(S))+ \chi_{\mathrm top}(R) = 2\chi_{\mathrm top}(\mathbb{P}^n) - \chi_{\mathrm top}(S)$$
and this allows us to recover $b_n(X)$ as well.