Pain in chest. Is there a test that will confirm whether I had a cardiac arrest?

Well... Cardiac arrest means your heart stopped, so if you are typing and breathing, probably not. If you are wondering about a heart attack (myocardial infarction) the emergency room can run several tests, in the context of other tests, can confirm if chest pain is heart related.
Depends. Get the current chest pain evaluated. Ekgs can show old heart attack. Only at the time of a cardiac arrest or the 911 team can you know about cardiac standstill, or fibrillation. If you are still alive, and you must be, there is no way to, know if one had a prior arrest.