hi,
Create property for panel and then expose those. After that you will be able to access from UC.
for ex.
public string MyPanel
{
get { return panelName; }
}
Or you can use below technique.
protected void UCMethod()
{
Page myParent = this.ParentPageName;
Panel panel = myParent.PanelId;
}