What I have understand You want to see which db need to be re-configure
or re-build
run this script
use master
SELECT database_id,OBJECT_ID,Index_id,avg_fragmentation_in_percent
from Sys.dm_db_index_physical_stats (null,null,null,null,null)
--avg_fragmentation_in_percent if Between 3-5 need Reconfigure
--Above 30% Rebuild when...