Yes. According to the privacy policies, Twitter collects data on your IP address, the device you are using, and some other personal information. This is why Twitter is able to tell whether a tweet is made from Android, iOS, or the web.