Differentiating between vgpu & full pass through

is there a programmatic way to check if my linux vm has a grid vgpu or full direct pass though before driver installation