With an ohm meter or continuity tester.
The transformer is nothing more than a step down from one voltage to another.
If you have continuity in the primary windings and continuity in the secondary windings, that part is OK.
Next check for continuity (short) to ground, if you have that the transformer is bad.