They have Tomcats and Phantoms. It's beside the point. Iran has 80m people and is one of the biggest oil suppliers in the world. Iraqi Kurdistan has 6m and the current peshmerga force is run on a shoestring because trade is severely constricted and subject to tariffs/payoffs on every side, due to its landlocked status.
For what it's worth, I don't think they've had any spare parts for those babies for over thirty years and most, if not all, are unflyable. At any rate, they aren't combat-worthy.
Altogether, it's a pretty motley group -- Iranian Air Force. Nothing new since 1991, unless built in-country and of dubious value.
On the ground, certainly, the Iranians could outman the Peshmerga -- but the Kurds would likely fight (unlike the Iraqis).
There is a chance, of course, that a successful Israeli attack might bring down the Mullahs -- so any Kurdish cooperation would be a calculated risk.