Everything I've read has said that OS X featured parts of FreeBSD, never heard of NetBSD being used. (Yes, they are sibling projects and probably share more code than I'm aware.)
Are we talking the "part of OSX" that is called "Darwin"? If so, the code is all online. Easiest way to determine how much code is from NetBSD is to read it. And diff it against NetBSD's CVS repo.