Short answer = You should be able to make through immigration, bag pick up and customs in time to catch a train or bus into town. Given the inconvenient hour, you might want to select your hotel based on ease of access from HND.
This is a topic that comes up occasionally, so you might find it helpful to search for threads like this one. (Worth examining for the detail about transportation and for an example of the worst tone to strike in an opening post, too IMHO):
http://www.flyertalk.com/forum/japan...-midnight.html