You can just load the model and then print it. For instance:
class Model_test(nn.Module):
    def __init__(self):
        super().__init__()
        self.drop_layer = nn.Dropout(0.5)

    def forward(self, inputs):
        return self.drop_layer(inputs)
    
model = Model_test()

Now printing the model (print(model) ) returns:
Model_test(
  (drop_layer): Dropout(p=0.5, inplace=False)
)

which gives you the dropout rate you are looking for.