The checkAll method in the UpdateCheck plugin provides an example of how to query all extensions for new versions.