Since, you know the name of the package, do this:
yarn list --pattern <package_name>
The above command will get you all installed versions of a package at any depth. For example, I have different versions of camelcase library installed at various depths. On running the command : yarn list --pattern "camelcase", this is the output:
yarn list v1.22.5
├─ camelcase@6.2.0
└─ yargs-parser@13.1.2
└─ camelcase@5.3.1