title: Find out version of composer used to build composer.lock file
body: <p>Most of my projects are built using Composer 1. Now that I am upgrading to Composer 2, I would like to run a command to get the version of Composer that was used to build the project. What is the best way to get the version? I believe the version is stored in <code>plugin-api-version</code> but not sure what is the best way to get that. Was hoping that there was a Composer command to read that.</p>