You can use the Guided User Interface (GUI) to create such a condition.
Click on the Conditional quick tag button and set the condition to show your content based on the Views ShortCode "wpv-post-status".
Then, insert this Condition.
After, highlight "[wpv-post-status]" with the mouse cursor and use the Fields and Views GUI to customize the data set of this ShortCode.
Choose again wpv-post-status, and now, you will be able to set where from to get the parent post status.
However, this is not possible in this way if your post is in a Many to Many relationship.
It works only if it's a One To (or less) Many Relationship.
Then, at the end you will have a call like that in your condition:
[wpv-conditional if="( '[wpv-post-status item="@post_type_a-post_type_b.parent"]' eq 'publish' )"]tjihs[/wpv-conditional]
That will check if the currently (only) assigned parent of the current post has status "publish".
But, again, when this is a Many To Many Relation that does not work.
In this case you are asked to use a View, to display the parent post information.
That would not be an issue, but the problem is, the View, will return a certain default HTML that will destroy the ShortCode attribute "item" of wpv-post-status.
This is a problem that we will solve soon as we plan to allow raw View's Output, and I am gonna push that request in this new light.
However, I also have to outline that the problem is, in a M2M (many to many relation) you will have many (eventually) related posts and our attribute supports just ONE parent post.
If you would pass many parent posts as they can exist in a M2M relation, then it might be that one of them is published, the other not.
From which should we now get the data?
So you see, even if this would be possible with a raw View, you still could return just ONE ID in the View's result and use that to get data from ONE related post.
Hence, that is almost the same as having a One to Many relation, where this is possible directly with the ShortCode attribute as shown above.
But I can see edge cases where this will be done and hence I added as stated the new aspect of this.