How do I determine the specific dependent already claimed causing my return to be rejected? I received reject code: SEIC-F1040-506-02

This has happened in the past, due to my husband's ex defying a court order and claiming both their children. It has likely happened again but want to be certain before we file for contempt as we also have two children together.