Note that it is not possible to derive this information solely from the IP address. While this was possible in the early days of the internet, when you could look at an address and see whether it was in a space reserved for Class A (netmask 255.0.0.0), Class B (255.255.0.0), or Class C (255.255.255.0) networks, the modern IPv4 address space is allocated as CIDR (Classless Inter-Domain Routing) blocks, which can have netmasks with any number of bits set and don't necessarily respect the Class A/B/C boundaries.
Given an IP address and a netmask, you can calculate the range of addresses, network address, broadcast address, etc., but not from the IP address alone.