Fedwire does not check OFAC, the FRB is exempt from checking. The US treasury website
www.treas.gov/ofac has the listing. You can also purchase software from several reputable companies. A google search will list them. You could also talk to your mainframe vendor, they may have a solution.