I'm not entirely clear what you want to do. Do you want to select all materials assigned to a specific object? Or...?