Detect Network Cards

 I need the source code of a program that can detect a Network Card. So when
i start that program he has to tell me wat kind of network card is in it.

Sandy