Ally bolts are light though to and also non magnetic :-(
I have found that as a 'rule of thumb' second hand ally bolts normally have some damage to the head (if used for anything more than low torque stuff - bottle cages etc) as they are quite soft (compared to Ti), Ti ones are normally OK.
Older Ti bolts quite often have thin rolls of swarf wedged in the bottom of the hex hole, newer Ti bolts don't seem to have the same problem - maybe better (and cheaper ) production methods ?
The swarf can be broken / picked out, it will be quite hard and sharp.
The machining marks on Ti bolts are normally a bit more pronounced than steel or ally bolts.
Oddly by putting them in your hand and looking at them you can tell.
Ti has a slightly different look to it, be it darker grey or the shiny version and it feels neither heavy nor light. (it sits in between Alu and Ti). But maybe that just because I'm used to them. Picked up 4 lovely ones out of a box at a bike jumble for next to nowt
If you cannot decide, stick them on a digital balance an weight them and post a picture up.
Its very easy to identify titanium - just hit the bolt with an angle grinder. If the sparks are white its titanium, orange or yellow sparks indicate steel and no sparks is aluminium.