I only ever owned an XPS 13 9350 (~2015) and it suffers from really horrible coil whine, regardless of whether anything is plugged in or not.
I really wonder whether they’ve fixed this issue, as I’ve heard that some models after this one still suffered from the same.