Researching Workers Compensation Accidents

When (if ever)is it legal to ask an employee if they have ever had a workers compensation accident? I imagine it is not proper before hiring, but can it be part of a post offer = pre-hire physical to ask an employee if they have ever had any WC accidents??