For the registration IP you can use a custom HTML field with the following substitution:
Code:
[cb:if user="#me" usertype!="Registered"][cb:userdata field="registeripaddr" /][/cb:if]
For the last IP you can use the CB Antispam Plugin. It provides a lot of features, including a field (antispam_ipaddress).