This functionality is provided by rpm, not yum:
rpm -ql [packagename]
From the documentation:
The general form of an rpm query command is
rpm {-q | --query} [PACKAGE_NAME] [query-options]
Information selection options:
-l, --list List files in package.