Certainly possible. The easiest way is to simply delete all built-in outbound rules and add a few ones targeting those IPs as the remote address. Also, configure the firewall to block outbound connections not matching a rule.
You may also probably want to enable a few other services, like DNS, DHCP and maybe specific programs (like Windows Update for example).