May be you are looking for reading the sheet names from a given excel file
Establish a linked server to the excel file
EXEC sp_addlinkedserver 'ExcelShare',
'Jet 4.0',
'Microsoft.Jet.OLEDB.4.0',
'\\MyServer\MyShare\Spreadsheets\DistExcl.xls',
NULL,
'Excel 5.0'
Then you can use sp_tables_ex procedure to read the sheet names in the excel file