do you mean something like this,
a = nn.Embedding(3, 2, padding_idx=2)
list(a.parameters())

[Parameter containing:
 tensor([[ 0.7825, -1.5956],
         [-1.9341,  0.7428],
         [ 0.0000,  0.0000]], requires_grad=True)]