I suppose so, but it would be hard to cover all cases.
Case 1: PC connected to the internet through modem. Check DHCP lease information to determine whether IP is dynamic or static.
Case 2: PC connected to to internet via router. Can determine is PC has dynamic IP on LAN, but would need to query router (or some external server) to determine if the LAN itself had a dynamic or static IP...
Case 3: More complicated network configuration; LAN segments connected by bridges, IP tunnels, etc.
Could be tricky.