If you want to check a specific layer by name in Sequential, you could try on this:
for module in model.children():
    if isinstance(module, nn.AdaptiveAvgPool2d):
        # your use case

There are many ways to check modules, params and buffers in network, you could check them on docs and play with them to meet your use case.