You can break it down into three steps:
1. Calculate M from the osmotic pressure formula P = MRT
2. Calculate moles from the molarity formula M = moles / Liter
3. Calculate M (the molar mass) from moles = grams / M
In step 1, convert the osmotic pressure P to atmospheres and use R = 0.08206 L atm / mol K (and of course convert T to Kelvin).
Steve