For DirectX you can just use BitMasking to check whether it is a 5-6-5 or a 5-5-5 card.
And also for normal DIB sections this is possible with GetDeviceCaps() and EnumDisplaySettings().
If this is only about checking whether your code really works on a 5-5-5 video card, then I'm afraid I cannot help you.
------------------
Dance with me......