By default, a BIND DNS server will report which version it is running to anyone that's interested. All it takes is a simple lookup of the version.bind text record in the chaos class of your server. Check this out:
Skadi:~ slap$ dig version.bind txt chaos @localhost
; <<>> DiG 9 …