是否有清除命令显示系统上最新安装的内核?

I'm looking for a command that lists me the latest kernel installed on a (Debian) system. For example grub-mkconfig "somehow" knows what the latest kernel version is. How does it achieve that? I know I can see it by looking but is there a command that can interpret the versions correctly?