Check if a different page has any attached images

$args = array(
    'post_type' => 'attachment',
    'numberposts' => null,
    'post_status' => null,
    'post_parent' => $post_id
);
$attachments = get_posts($args);
if ($attachments) {
    echo "attachments rock!";
    }
}

If you want to make sure the atachements are an image, you would use:

if ( $attachments and wp_attachment_is_image( $post_id ) ) {
echo "attachments rock!";
}