Measuring the triple Higgs self-couplings in two Higgs doublet model