D3D provides the DXGI_HDR_METADATA_HDR10 API:
typedef struct DXGI_HDR_METADATA_HDR10 { UINT16 RedPrimary [2]; UINT16 GreenPrimary [2]; UINT16 Blue