There are grounded duckheads for this purpose, e.g. https://amzn.to/4cnzuef (note out of stock. I guess your best bet is to use a UK duckhead, but half of those have a dummy ground...)
if you take the plug part from the brick you'll note that there's only two pins but the button-like thing is a ground
There's zero chance that the DC ground in the laptop is tied to earth ground in the charger: they use LLC resonant converters and flyback converters (depending on vintage) - an earth ground tie would defeat the purpose of these isolated topologies.