Google Cloud does not provide a direct API to map instance types to their supported disk types explicitly, but you can derive this information from the following resource.
https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison
Based on the above information you can map the compatibility with the machine type.