Yes, here is how you can do it. You can use puppet resource [type] for that.
To get a list of installed packages:
puppet resource package
Get a specific package with version:
puppet resource package httpd
Files:
puppet resource file /etc/httpd/conf.d/example.conf