If you mean hydrate as in MgSO4 ยท 7H2O, then simply find the molar mass of each element you see.
For the example above, that means you would add the molar mass (found on the periodic table) of Mg, then S, then 4(O), 14(H), and 7(O).
The results would be your molar mass for the hydrate.
I hope this is what you meant by your question!