The get_post_type_object()
function accepts a post type name and returns the post type object. You can then check the capability_type
property of this object.
Example:
$post = get_post( $post_id );
$pto = get_post_type_object( $post->post_type );
$cap_type = $pto->capability_type;