You cannot prevent students from editing Discussion posts on a course-by-course basis, but instructors can see an edit history for discussion posts.
In the Grid View:
In the Reading View:
Please note: You can modify your Discussion display settings by selecting the Settings gear icon in the upper right corner of the Discussions area.