Determine if device is assigned via cmdline

Options

Hi

Is it possible to determine from cmdline whether a TV Host device is successfully assigned? Looking to script. Initially MacOS but also Windows.

Thanks.

David