rcp_get_restricted_post_ids()

Returns an array of post IDs that have post-level restrictions defined via the "Restrict this content" meta box.

The return value is saved in a transient for one day to help with performance.