Is there a PHP function that will return the block ID generated by WordPress?

You can iterate on your parsed blocks to get the right block.

$blocks = parse_blocks( $post->post_content );
foreach ( $blocks as $key => $block ) {
    if ( 'block_xxxxx' === $block[ 'id' ] ) {
        // do some action here
    }
}