The hostname would rely on DNS, so unless the attacker has added an entry to DNS you're resolving from then no. And no you wouldn't be able to ID the attacking OS since that type of info isn't transmitted. You could detect and then actively scan it with a tool like nmap