Indirect measurement of quarkonium in the two-photon process