check chocolatey packages code example
Example 1: chocolatey list installed
choco list --local-only
Example 2: where are chocolatey packages installed
Some packages are installed under ChocolateyInstall\lib, others
- especially packages that are based on Windows installers (.msi files)
- install to the default path of the original installer (which is most likely within Program Files).