Yes you can write to HR and ask where you went wrong in the selection process, and yes they will write back. However, having asked for it myself, they don't give you the specifics you are wanting, other than to re-iterate that you did not meet their criteria.