Suppose a sensor is calibrated to capture D65 as neutral, then it could simply communicate that wp in the rawdata.
a lot of cameras communicate in raw data WB settings as raw channel "multipliers" (or rather numbers that software can use to calculate multipliers) for a lot of illuminants, for example
A7R2
0x0264 WB RGB Levels : 602 256 394
0x7820 WB RGB Levels Daylight : 2444 1024 1600
0x7821 WB RGB Levels Cloudy : 2644 1024 1468
0x7822 WB RGB Levels Tungsten : 1496 1024 2868
0x7823 WB RGB Levels Flash : 2696 1024 1444
0x7824 WB RGB Levels 4500K : 2200 1024 1800
0x7825 WB RGB Levels Shade : 2916 1024 1320
0x7826 WB RGB Levels Fluorescent : 2228 1024 2256
0x7827 WB RGB Levels Fluorescent P1 : 2368 1024 1680
0x7828 WB RGB Levels Fluorescent P2 : 2660 1024 1552
0x7829 WB RGB Levels Fluorescent M1 : 1764 1024 2760
0x782a WB RGB Levels 8500K : 3072 1024 1252
0x782b WB RGB Levels 6000K : 2620 1024 1480
0x782c WB RGB Levels 3200K : 1676 1024 2492
0x782d WB RGB Levels 2500K : 1300 1024 3456
Fuji X-H1
0xf00c WB GRB Levels Standard : 302 379 845
17 302 644 492
21 ----- #17 = StdA, #21 = D65
0xf00d WB GRB Levels Auto : 302 710 536
and no - no consumer level camera is calibrated (CFA spectral transmission) for D65 or any other illuminant resembling anything naturally occuring as it is UniWB illuminant.