It is possible. Calculate it as your usual loss. Suppose the CNNs are exactly the same except weight values. You can do something like:
weight_loss = sum((w1 - w2).pow_(2).mean() for w1, w2 in zip(net1.parameters(), net2.parameters()))
weight_loss.backward()

Then let your optimizer to its trick.