First, I will make a distinction of terminology.
A computer is hardware, like, in essence a calculator. Hardware doesn't make choices or decisions. Its response to. It's behavior to a given input is generally static or in set in a pre-specified pattern (e.g. press a button, show 1+the last number shown). However, it often responds to an input by giving inputs to a program, and then following its instructions (like a car, responding to a driver's input of pressing the accelerator peddle by speeding up).
A program is software. Software and its behavior can be edited, and can even alter its own behavior (see the topics of "machine learning" and "artificial intelligence", and note that in real life they are actually quite different from how they are commonly portrayed in fiction, much like law).
With regards to a computer, technically it could be targeted directly by legal action today under the rule "civil asset forfeiture". However, in general a computer is a merely a location where programs are stored and run, and so are unlikely to be indictable in the traditional sense, in the same way that one would usually not be able to indict a field or building.
Potentially, a program could be indicted, if a law was passed indicating that programs or classes of programs are legally considered persons. Note that either this only apply to programs that can pass some series of thresholds or would have massive additional effects because programs would then be full persons, under the law; so you wouldn't be able to buy, sell or license property (due to slavery laws), nor shut down computers (because doing so would "kill" the programs that are stored there (in the same way one can't burn down a building where people are living), nor alter programs without their consent (analogous to medical procedures).