Let $A, B \in \mathbb{R}^{n \times n}$ be symmetric, positive-semidefinite, full-rank matrices. I would like to understand the set of $X \in \mathbb{R}^{n \times n}$ which are themselves symmetric and positive-semidefinite and verify $X A X^T = B$.
As a first step, I have decomposed $A = A^{1/2} A^{1/2}$ and $B = B^{1/2} B^{1/2}$ and thereby observed that any solution must verify $X A^{1/2} = B^{1/2} O$, and thus $X = B^{1/2} O A^{-1/2}$, for some orthogonal matrix $O$. However, I am stumped as for how to find the set of orthogonal matrices $O$ for which the result is symmetric and PSD.