I'm assuming you want to know if the server is using dhcp address or not? If so, you can grep for dhclient or even you can check /etc/sysconfig/network-scripts/ifconfig-interfacename for BOOTPROTO=dhcp on Redhat.
There isn't a foolproof method. The question "is my network device set dhcp" doesn't make sense, because a network device doesn't have a "DHCP" setting. So the question is: "Was eth0 set to 192.168.0.107 by static settings, or did dhcp do it?"
So you have to know where a distribution gets its settings to answer that question.