To piggyback off of Brent’s post, here’s an easy way to test for the barrel size, written up in another forum post: Measuring Power Supply Barrel Plug ID 2.1mm vs 2.5mm
This only works if the plug is one of the more common sizes, 2.1mm or 2.5mm, but hopefully that helps.