Puedes emplear las funciones API para acceder al registro de Windows y obtenerlas.
try
{
HKEY hKey = 0;
LONG rc = 0;
DWORD dwKeyValSize;
DWORD dwKeyValType;
BYTE byBuf[1024] = _T("");
rc = RegOpenKeyEx(HKEY_CURRENT_USER,_T("SOFTWARE\\Microsoft\\Windows NT\\Devices"), 0, KEY_ALL_ACCESS, &hKey);
if (rc != ERROR_SUCCESS)
throw 1;
else
{
dwKeyValSize = 1024;
for (int i = 0; i <1024; i++)
_tcscat((TCHAR*)byBuf, _T("0"));
rc = RegQueryValueEx(hKey, _T("Fax"), 0, &dwKeyValType, byBuf, &dwKeyValSize);
if (rc != ERROR_SUCCESS)
throw 2;
else
{
*csReturnValue = byBuf;
rc = RegCloseKey(hKey);
if (rc != ERROR_SUCCESS)
throw 3;
else
throw 0;
}
}
catch(...)
{
MessageBox(_T("ERROR"));
Con este codigo, accesas al registro y obtienes informacion sobre el puerto para el Fax. De igual manera, explora para obtener otros datos. Por supuesto, tienes que estar empleando MFC y, en especial, tener el #include <afxwin.h>.