The code below applies to CRM 2011, 2013 and 2015 On-Premise. you will need select permissions on the CRM database.
Replace YourPublisherName in the where clause with the name of your solution publisher.
Replace Crm_MSCRM with the name of your CRM database.
SELECT [entity]
, [command]
,[commanddefinition]
FROM [Crm_MSCRM].[dbo].[RibbonCommand]
where command like '%YourPublisherName%'
order by [entity]