Detail of media ids for a layout

Hi,

Please help me knowing the table name for getting detail of media id for a particular layout. ex., if I have defined 10 videos and 10 texts in a layout, I should be able to get the IDs for all 20 so that I can refer/ink media ids with other tables to get the required information.

Thanks,

Rahul

Someone, please help.