The Knox laws are still in force. There is no legal framework for an American military coup, setting aside that the Commander in Chief is an elected office.
Part of running a coup in a democratic country is that your ground troops have to be on your side. This is much more difficult when every single soldier is made completely aware during indoctrination that domestic military action is almost completely illegal. Adding in the fact that there is no conscription in America, the likelihood of a military coup today is vanishingly small.
If you fail, it's very, very often fatal. If you succeed, you retrofit some sketchy legal justification, or ignore the matter altogether.