Yes, I already have something that does this. You create a session relevance query to return the set of patches that you want to include in a baseline, and it will create the baseline for you. By default it is set to include all patches that have at least 1 computer relevant.
See these: