How to detect memory type and vendor?

Hi guys. Please tell me how to determine in C ++ what type (DDR4, DDR5, etc.) and vendor (Samsung, Micron, etc.) of memory is used on the video card?