We can run this query on the distribution database and provide the publisher database (e.g. WideWorldImporters) and the publication (e.g. TransactionTables)
select a.name ,h.comments from MSdistribution_history h with (nolock) join MSdistribution_agents a with (nolock) on h.agent_id = a.id where a.publisher_db = 'WideWorldImporters' and a.publication = 'TransactionTables' and h.comments like 'Table% out of synchronization%'