there are various methods proposed by the researchers for calculating the threshold voltage. But majorly depends on which tech node you are working. For that you need to calculate the transconductance first.
For calculating the transconductance, just differentiate the IdVg curve obtained from the simulator, the curve will show you the transconductance.