just ask your simulator to display the gm of the given transistor. Even if this could be different in different simulator, I guess you can simply ask for gm(mx), where mx is the transistor for which you want to get its gm. For a CMOS inverter, the total gm is the addition of the gm's of both transistors. Read the your simulator's manual to see how to extact the gm.