I have a 6 channel input audio 5.1 home theater. can i connect it to HDMI of TV?

Without makes and model number there is no way anyone can give you exact answer.
If both the TV and HTS have ARC then yes. If not then you can't use HDMI.
Most common would be to use the TV optical audio output.