This one-liner will help to find all WordPress installations running a specific version, where the current latest is 5.6
locate wp-includes/version.php | xargs grep "wp_version = " | grep -v " = '5-6'"
A more efficient shell script that will scan and create a list of all WordPress installations along with their version number can be found here.