Transfer T5

I have a Iberia flight from Madrid to Heathrow (arriving T5) and then just over 2 hours for my next flight with is Heathrow to Mexico City booked on BA.

Is there a codeshare that will allow luggage to be checked thru to Mexico City or do I have to get luggage at arrivals and then recheck in from fresh.

Latter might be tough with only 2 hours.

Any thoughts would be welcome